<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>新闻</title>
	</head>
	<body>
		<ul>
			
		</ul>
		<script type="text/javascript">
			//2.需求；获取新闻，生成对应标签显示在页面上，用Object新增的方法
			        let news = {
			            "news1":"福建疫情严重了,关联66人",
			            "news2":"武汉律师被枪杀",
			            "news3":"80岁老奶奶半夜王者峡谷五杀",
			            "news4":"80岁老奶奶半夜王者峡谷五杀",
			            "news5":"80岁老奶奶半夜王者峡谷五杀"
			        }
					var Oul = document.getElementsByTagName("ul")[0];
					let arrKey = Object.keys(news);
					let arrvalues = Object.values(news);
					let str = "";
				  for(let i = 0;i<arrvalues.length;i++)
				  {
					  str += `<li>${arrvalues[i]}</li>`
				  }
				  Oul.innerHTML = str;
		</script>
	</body>
</html>
